Skip to content

case insensitive mode moved to start of regex - #22

Open
landiisotta wants to merge 1 commit into
BCHSI:masterfrom
landiisotta:fix-global-flags-error
Open

case insensitive mode moved to start of regex#22
landiisotta wants to merge 1 commit into
BCHSI:masterfrom
landiisotta:fix-global-flags-error

Conversation

@landiisotta

Copy link
Copy Markdown

Since Python 3.6 the inline flags not at the start of regular expression throw an error. Modified line 226 of philter.py:

  • added exception to catch the re.error;
  • moved case insensitive regex (?i) to the start of the regular expression.

@Keetan

Keetan commented Nov 9, 2023

Copy link
Copy Markdown

I also ran into the re.error when following the instructions in the readme, and was able to run philter successfully (steps 0, 2a, and 2d) using the changes in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants